

def get_responder(request):
    user = request.user
    responder = ""
    ## 获取审批人 先判断是不是 部门leader 是的华判断是不是董事会
    if user.department.leader.uid == user.uid:
        if user.department.name == "董事会":
            responder = None
        else:
            responder = user.department.manager
    else:
        responder = user.department.leader
    return responder
